<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>添加用户</title>
		<link rel="stylesheet" href="src/css/login.css" />
		<script type="text/javascript" src="src/js/jquery-1.8.2.js"></script>
		<script type="text/javascript">
			$(document).ready
			(
				function()
				{
					// 获取可用区高度
					var window_height = $(window).height();
					// 获取内容区域高度
					var form_area_height = $('.contents').height();
					// 计算上边距并应用
					var margin_top = parseInt( (window_height - form_area_height) / 2);
					margin_top -= 50;
					$('.contents').css('margin-top', margin_top + 'px');
				}
			);
		</script>
	</head>
	<body>
		<div class="contents">
			<form action="add_user.php" method="post">
			<table>
				<tr>
					<td><span class="title">用户名：</span></td>
					<td><input type="text" name="username" /></td>
				</tr>
				<tr>
					<td><span class="title">密码：</span></td>
					<td><input type="password" name="pwd" /></td>
				</tr>
				<tr>
					<td><span class="title">确认密码：</span></td>
					<td><input type="password" name="repwd" /></td>
				</tr>
				<tr>
					<td colspan="2" class="submit"><input type="submit" value="添加" /></td>
				</tr>
			</table>
			</form>
		</div>
	</body>
</html>
